/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.worksheet.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 工单管理Entity
 * @author johnKee
 * @version 2016-07-17
 */
public class ZlmtResourceWorksheet extends DataEntity<ZlmtResourceWorksheet> {
	
	private static final long serialVersionUID = 1L;
	private String hostid;		// 主机id
	private String hostName;		// 主机名
	private String alias;		// 别名
	private String worksheetId;		// 工单id
	
	public ZlmtResourceWorksheet() {
		super();
	}

	public ZlmtResourceWorksheet(String id){
		super(id);
	}

	@Length(min=1, max=64, message="主机id长度必须介于 1 和 64 之间")
	public String getHostid() {
		return hostid;
	}

	public void setHostid(String hostid) {
		this.hostid = hostid;
	}
	
	@Length(min=0, max=128, message="主机名长度必须介于 0 和 128 之间")
	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	
	@Length(min=0, max=128, message="别名长度必须介于 0 和 128 之间")
	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	@Length(min=1, max=64, message="工单id长度必须介于 1 和 64 之间")
	public String getWorksheetId() {
		return worksheetId;
	}

	public void setWorksheetId(String worksheetId) {
		this.worksheetId = worksheetId;
	}
	
}